首页> 外文OA文献 >Toward live domain-specific languages: From text differencing to adapting models at run time
【2h】

Toward live domain-specific languages: From text differencing to adapting models at run time

机译:面向实时领域特定语言:从文本差异到运行时的适应模型

代理获取
本网站仅为用户提供外文OA文献查询和代理获取服务,本网站没有原文。下单后我们将采用程序或人工为您竭诚获取高质量的原文,但由于OA文献来源多样且变更频繁,仍可能出现获取不到、文献不完整或与标题不符等情况,如果获取不到我们将提供退款服务。请知悉。

摘要

textabstractLive programming is a style of development characterized by incremental change and immediate feedback. Instead of long edit-compile cycles, developers modify a running program by changing its source code, receiving immediate feedback as it instantly adapts in response. In this paper, we propose an approach to bridge the gap between running programs and textual domain-specific languages (DSLs). The first step of our approach consists of applying a novel model differencing algorithm, tmdiff, to the textual DSL code. By leveraging ordinary text differencing and origin tracking, tmdiff produces deltas defined in terms of the metamodel of a language. In the second step of our approach, the model deltas are applied at run time to update a running system, without having to restart it. Since the model deltas are derived from the static source code of the program, they are unaware of any run-time state maintained during model execution. We therefore propose a generic, dynamic patch architecture, rmpatch, which can be customized to cater for domain-specific state migration. We illustrate rmpatch in a case study of a live programming environment for a simple DSL implemented in Rascal for simultaneously defining and executing state machines.
机译:textabstractLive编程是一种开发风格,具有不断变化和即时反馈的特点。开发人员可以通过更改源代码来修改正在运行的程序,而无需立即进行漫长的编辑编译周期,因为它可以立即做出响应,因此可以立即收到反馈。在本文中,我们提出了一种弥合运行程序与文本域特定语言(DSL)之间的差距的方法。我们方法的第一步是将新颖的模型差分算法tmdiff应用于文本DSL代码。通过利用普通的文本差异和原点跟踪,tmdiff可以生成根据语言的元模型定义的增量。在我们方法的第二步中,在运行时应用模型增量来更新正在运行的系统,而不必重新启动它。由于模型增量是从程序的静态源代码派生的,因此它们不知道在模型执行期间维护的任何运行时状态。因此,我们提出了一种通用的动态补丁体系结构rmpatch,可以对其进行自定义以满足特定于域的状态迁移。我们在一个实时编程环境的案例研究中说明了rmpatch,该环境是在Rascal中实现的,用于同时定义和执行状态机的简单DSL。

著录项

  • 作者

    Rozen, Riemer; Storm, Tijs;

  • 作者单位
  • 年度 2017
  • 总页数
  • 原文格式 PDF
  • 正文语种 en
  • 中图分类

相似文献

  • 外文文献
  • 中文文献
  • 专利
代理获取

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号